<div id="event-container" class="content" style="width:1050px;">
<!---------- HEADER ---------->
	<div class="article-header">
		<a href="#"><img id="article-logo" src="<?php echo base_url();?>assets/themes/planetjazz/images/PJ-blue-logo.png" /></a>
		<img id="article-banner" src="<?php echo base_url();?>assets/themes/planetjazz/images/banner.jpg" />
		<div class="clear"> </div>
	</div>
	<div class= "category-header">
		<h1 class = "h1"><span class="h1-title"></span>
			<?php
				$category = get_type_name($content['fk-tb_mas_content_types']);
				echo $category;
			?>
		</span></h1>
		<div class="clear"></div>
	</div>
	
<!--------- ARTICLE --------->
<div class = "modal-pagewrap">
	<div class="article" style="float:left;">
		<div class="article-header">
			<h3 class="article-title"><?php echo $content['strTitle']; ?></h3>
			<p class="article-date"><span>
				<?php
					$date = date('M d, Y', strtotime($content['dteStart']));
					echo $date;
				?>
			</span></p>
			<!-- AddThis Button BEGIN -->
			<div id="article-social-media" class="addthis_toolbox addthis_default_style addthis_32x32_style">
			<a class="addthis_button_facebook_like" fb:like:layout="box_count"></a>
			<a class="addthis_button_tweet" tw:count="vertical"></a>
			<a class="addthis_button_google_plusone" g:plusone:size="tall"></a>
			<a class="addthis_counter"></a>			
			</div>
			<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
			<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4ec0214313fd07b4"></script>
			<!-- AddThis Button END -->
			<div class="clear"> </div>
		</div>
		<div>
			<p>
			<img  class="events-img" src="<?php echo $content['strEventPosterUrl'];?>"/>
			</p>
			<div class="text"><?php echo $content['ct-strContent'] ?></div>
			<!-- AddThis Button BEGIN -->
			<div id="article-social-media" class="addthis_toolbox addthis_default_style addthis_32x32_style">
			<a class="addthis_button_facebook_like" fb:like:layout="box_count"></a>
			<a class="addthis_button_tweet" tw:count="vertical"></a>
			<a class="addthis_button_google_plusone" g:plusone:size="tall"></a>
			<a class="addthis_counter"></a>			
			</div>
			<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
			<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4ec0214313fd07b4"></script>
			<!-- AddThis Button END -->
			<div class="clear"> </div>
		</div>
		
<!----------- COMMENTS ------------>
		<div id="disqus_thread"></div>
		<script type="text/javascript">
			/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
			var disqus_shortname = 'pinoytuner2'; // required: replace example with your forum shortname

			/* * * DON'T EDIT BELOW THIS LINE * * */
			(function() {
				var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
				dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
				(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
			})();
		</script>
		<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
		<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
		<div class="clear"> </div>
	</div>
<!---------- SIDEBAR --------->
	<div class="sidebar">		
		<h2>
			more <?php
				$category = get_type_name($content['fk-tb_mas_content_types']);
				echo $category;
				?>
		</h2>
		<?php if(empty($more_content[0])): ?>
			<p>
				no <?php
					$category = get_type_name($content['fk-tb_mas_content_types']);
					echo $category;
					?>
				archive
			</p>
			
		<?php else: 			
			
		?>
			<div class="more-content">
				<?php 
					foreach($more_content as $more): ?>
						<p><a class="modal-trigger sidebar-link" href="<?php echo base_url().'planetjazz/content/'.get_type_name($more['fk-tb_mas_content_types']).'/'.$more['intID'].'/'.simplify_title($more['strTitle']); ?>" >
							<?php echo $more['strTitle']; ?>
						</a></p>
				<?php endforeach; ?>
			</div>
		<?php endif; ?>

		<?php if(count($content)>5): ?>
		<!-------------------------------------ARTICLE AJAX TRACKER--------------------------------------------------->
			<input type="hidden" value="1" id="news-current">
		<!------------------------------------------------------------------------------------------------------------>
		<?php endif; ?>
		
		<hr/>
		<p class = "content-tags">
			<?php if(empty($content['strTags'])): ?>
				<h2> no tags </h2>
			<?php else:
				$content_tags = $content['strTags'];
				$tag1 = explode(",", $content_tags);
				foreach($tag1 as $t):
				    ?>
                    <a href="<?php echo base_url().'planetjazz/tags/'.$t; ?>"><?php echo $t; ?></a>
			<?php 
                endforeach;
            endif; //endforeach; ?>
		</p>
		<hr/>
		<h2>
			related  <?php
				$category = get_type_name($content['fk-tb_mas_content_types']);
				echo $category;
				?>
		</h2>
		<?php if(empty($tags)): ?>
			<p>
				no related <?php
					$category = get_type_name($content['fk-tb_mas_content_types']);
					echo $category;
					?>
			</p>
		<?php else: ?>
			<div class="more-content">
				<?php foreach($tags as $data): ?>
					<p><a class="modal-trigger sidebar-link" href="<?php echo base_url().'planetjazz/content/'.get_type_name($data['fk-tb_mas_content_types']).'/'.$data['intID'].'/'.simplify_title($data['strTitle']) ?>" >
						<?php echo $data['strTitle']; ?>
					</a></p>
				<?php endforeach; ?>
			</div>
		<?php endif; ?>
		<div class="clear"> </div>
		
		<hr/>
		<p class = "external-links">
			<?php if(empty($content['strExternalLinks'])): ?>
				<p class="external-links"> no external links </p>
			<?php else:
				$content_externallinks = $content['strExternalLinks'];
				$tag1 = explode(",", $content_externallinks);
			?>
				<h2>external links</h2>
			<?php
				foreach($tag1 as $t):
			?>
                    <a class="modal-trigger sidebar-link" target="_blank" href="<?php echo $t; ?>"><?php echo $t; ?></a><br />
			<?php 
                endforeach;//endforeach;
            endif;  ?>
		</p>
	</div>
	<div class="clear"> </div>
	</div>
</div>